<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="renderer" content="webkit" />
    <title>链接</title>
    <link rel="stylesheet" href="../../../../cross/css/cross.css" type="text/css" />
    <link rel="stylesheet" href="../../../../cross/css/cross.ui.css" type="text/css" />
    <link rel="stylesheet" href="../../../../iconfont/iconfont.css" type="text/css" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="../../../../cross/js/respond.min.js"></script>
    <![endif]-->
</head>
<body>
<div class="pt30 plr20">
    <div style="padding:20px;">
        <div style="margin:4px 0; padding:5px; background:#EEF7F5; text-align:left; color:#000; border-radius:3px; border:1px solid #D7EAE2; " class="tips">
            我是iframe页面：<a href="b.html" target="_blank">b.html</a>
        </div>
        <input class="input-text" id="bInput" value="">
        <a href="javascript:;" class="c-btn-tiny c-btn-blue" id="aButton">返回数据给A页面</a>
        <a href="javascript:;" class="c-btn-tiny c-btn-blue" id="reload">刷新A页面</a>
    </div>

</div>
<script type="text/javascript" src="../../../../cross/js/jquery/1.8.3/jquery.js"></script>
<script type="text/javascript" src="../../../../cross/js/cross.ui.js"></script>
<link rel="stylesheet" href="../../../../widget/artDialog/4.1.7/css/artDialog.css" type="text/css" />
<script type="text/javascript" src="../../../../widget/artDialog/4.1.7/js/artDialog.js"></script>
<script type="text/javascript" src="../../../../widget/artDialog/4.1.7/js/iframeTools.js"></script>
<script type="text/javascript">
    $(function(){
        $('#bInput').val(art.dialog.data('aValue'));// 读取A页面的数据
        // 返回数据给A页面
        $('#aButton').on('click' , function () {
            var bValue = document.getElementById('bInput').value;
            art.dialog.data('bValue', bValue);// 存储数据
            art.dialog.close();
        });

        // 刷新A页面
        $('#reload').on('click',function () {
            var win = art.dialog.open.origin;
            win.location.reload(); // 注意：如果父页面重载或者关闭其子对话框全部会关闭
            return false;
        });
    });
</script>
</body>
</html>